package com.xhh.microfin.dispatch.controller;

import com.xhh.microfin.dispatch.common.utils.R;
import com.xhh.microfin.dispatch.exception.OrderExistException;
import com.xhh.microfin.dispatch.model.vo.OrderVo;
import com.xhh.microfin.dispatch.model.vo.query.OrderQueryVo;
import com.xhh.microfin.dispatch.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 003035
 * @Date: 2019/1/16
 */
@RestController
@RequestMapping("user")
public class UserController {


    /**
     * @api {post} /user/add 新增用户
     * @apiName addUser
     * @apiGroup User
     * @apiParam {Number} userId 用户id
     * @apiParam {String} userName 用户姓名
     * @apiParam {String} mobile 用户手机号
     * @apiParam {String} personNo 用户身份证号
     * @apiParam {String} accountName 用户身份证号
     * @apiParam {String} cardNo 银行卡号
     * @apiParam {String} cardMobile 预留手机号
     * @apiParam {String} bankCode 银行简码
     * @apiParam {String} creditCode 社会统一信用码
     * @apiParam {String} userType 用户类型
     * @apiSuccessExample {json} Success-Response:
     * {
     * "status": 1,
     * "message": "success",
     * "data": null
     * }
     * @apiErrorExample {json} Error-Response:
     * {
     * "status":0,
     * "message":"增加订单失败"
     * }
     */
    @PostMapping("add")
    public R add(@RequestBody OrderVo orderVo) {

        return R.ok();
    }
}
